#ifndef TEXT_H
#define TEXT_H

#include "common.h"

typedef struct text_
{
	SDL_Rect rect;
	TTF_Font* font;
	SDL_Color fg_color;
	SDL_Color bg_color;
	SDL_Surface* str_surf;
	char str[100];
	int init_str;
	int max_len;
} text;

void init_text(text* t, char* text, int x, int y, int w, int h);
void display_text(SDL_Surface* screen, text* s);
void input_text(text* t, char c);

#endif
